home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_x / xysee30a.zip / 0SINTEST.MAC < prev    next >
Text File  |  1991-06-14  |  6KB  |  257 lines

  1. 0 Null XYSee 3.0 Demonstration MACRO... 0sineTest.MAC  5/91.
  2. 0 Null (c) 1991, Insight Advantage. All Rights Reserved.
  3. 0 BEEP
  4. 0 MESSAGE
  5. Example of using XYSee for :
  6. 3 MESSAGE 
  7.            ** TESTING **
  8. 1 MESSAGE {Blank out line}
  9.  
  10. 1 MESSAGE
  11.            ** TESTING **
  12. 1 MESSAGE {Blank out line}
  13.  
  14. 1 MESSAGE
  15. Your requirements may be more sophisticated,
  16. 4 MESSAGE
  17. but don't worry...
  18. 3 MESSAGE
  19. XYSee MACROs are SIMPLE to prepare !
  20. 4 MESSAGE
  21. You may print a copy of this testing routine...
  22. 4 MESSAGE
  23. with the Editor. The Macro name is "0SINTEST"
  24. 4 MESSAGE
  25. Locking the Keyboard...Click !
  26. 2 OFF-KEY
  27. 0 MESSAGE  {Blank out line}
  28.  
  29. 0 ACCEPT  Select the FAMILY Menu.
  30. 0 DOWN
  31. 1 DOWN
  32. 1 ACCEPT  Select the TRIGONOMETRIC Menu.
  33. 1 ACCEPT  Select the SINE module.
  34. 0 MESSAGE
  35. First let's set some initial conditions.
  36. 4 UP
  37. 1 UP
  38. 0 MESSAGE
  39. We'll set the model to Y=Asin(BX+C).
  40. 4 ACCEPT  Select the Select Model option.
  41. 0 ENTRY   Selected model is Y=Asin(BX+C)
  42. 4
  43. 1 ACCEPT Select the VARIABLE UPDATE Menu.
  44. 0 MESSAGE
  45. And initialize our variables.
  46. 4 DOWN   Enter an initial set of values.
  47. 1 ACCEPT  "A"
  48. 1 8.0    Enter values for the variables...
  49. 1 DOWN
  50. 1 DOWN
  51. 1 ACCEPT  "B"
  52. 1 1.0
  53. 1 UP
  54. 1 ACCEPT  "C"
  55. 1 0.0
  56. 0 MESSAGE  {Blank out line}
  57.  
  58. 1 CANCEL  To plot the initial values.
  59. 1 DOWN
  60. 1 DOWN
  61. 1 ACCEPT  Select the OVERLAY Menu.
  62. 0 MESSAGE
  63. Let's STORE the initial conditions.
  64. 4 ACCEPT  STORE the initial plot.
  65. 0 MESSAGE  {Blank out line}
  66.  
  67. 1 DOWN
  68. 0 BEEP Time to start...
  69. 1 ACCEPT  Select the CURSOR option.
  70. 0 MESSAGE
  71.     == Ready? ... Let's Begin ==
  72. 4 RIGHT * 15 Move to the Minimum Amplitude point.
  73. 0 DOWN  * 2
  74. 0 MESSAGE MINIMUM AMPLITUDE
  75. What is this point on a wave called?
  76. 9 LEFT  * 6 Move to the Maximum Amplitude point.
  77. 0 UP    * 33
  78. 0 MESSAGE MAXIMUM AMPLITUDE
  79. What is this point on a wave called?
  80. 9 MESSAGE
  81. The magnitude from this point...
  82. 5 DOWN  * 66
  83. 0 RIGHT * 13
  84. 0 MESSAGE PEAK-TO-PEAK AMPLITUDE
  85. To the opposite point is called?
  86. 9 CANCEL  Exit the CURSOR option.
  87. 0 MESSAGE  {Blank out line}
  88.  
  89. 1 ACCEPT  Select the VARIABLE UPDATE Menu.
  90. 1 UP
  91. 1 ACCEPT  "C"
  92. 1 -1.5
  93. 1 CANCEL  Replot with the new values.
  94. 1 DOWN
  95. 1 ACCEPT  Select the CURSOR option.
  96. 0 LEFT  * 7
  97. 0 UP    * 66
  98. 0 MESSAGE
  99. What is the distance from this point on the wave...
  100. 5 LEFT  * 26 Position the cursor to the second point/wave.
  101. 0 MESSAGE WAVELENGTH
  102. To this point on the wave called?
  103. 9 CANCEL  Exit the CURSOR option.
  104. 0 MESSAGE PERIOD
  105. What is the time duration for a single cycle?
  106. 9 MESSAGE FREQUENCY
  107. The number of cycles in one second is called?
  108. 7 MESSAGE HERTZ
  109. It's unit of measurement is the?
  110. 7 MESSAGE  {Blank out line}
  111.  
  112. 0 DOWN
  113. 1 DOWN
  114. 1 ACCEPT  Select the OVERLAY option.
  115. 1 DOWN
  116. 1 ACCEPT  RESTORE our previous plot.
  117. 1 DOWN
  118. 1 ACCEPT  Select the CURSOR option.
  119. 0 MESSAGE
  120. What is the difference from this point...
  121. 5 LEFT  * 7
  122. 0 MESSAGE PHASE SHIFT
  123. To the same point on a different wave called?
  124. 9 MESSAGE  {Blank out line}
  125.  
  126. 0 CANCEL  Exit the CURSOR option.
  127. 1 ACCEPT  Select the VARIABLE UPDATE Menu.
  128. 1 DOWN
  129. 1 ACCEPT  "A"
  130. 1  5.0    Amplitude value first.
  131. 1 UP
  132. 1 ACCEPT  "C"
  133. 1  0.0    Followed by the Phase Shift. (none here)
  134. 1 CANCEL  Replot with the new values.
  135. 1 DOWN
  136. 1 DOWN
  137. 1 ACCEPT  Select the OVERLAY option.
  138. 1 DOWN
  139. 1 ACCEPT  RESTORE the initial plot again.
  140. 1 DOWN
  141. 1 ACCEPT  Select the CURSOR option.
  142. 0 MESSAGE
  143. What is the variation from this point...
  144. 5 DOWN  * 12
  145. 0 MESSAGE AMPLITUDE DIFFERENCE
  146. To the matching point called?
  147. 9 MESSAGE  {Blank out line}
  148.  
  149. 0 CANCEL  Exit the CURSOR option.
  150. 1 ACCEPT  Select the VARIABLE UPDATE Menu.
  151. 1 DOWN
  152. 1 ACCEPT  "A"
  153. 1  8.0    Enter an additional set of values.
  154. 1 DOWN
  155. 1 DOWN
  156. 1 ACCEPT  "B"
  157. 1  2.0
  158. 1 CANCEL  Replot with the new values.
  159. 1 DOWN
  160. 1 DOWN
  161. 1 ACCEPT  Select the OVERLAY option.
  162. 1 DOWN
  163. 1 ACCEPT  RESTORE once again.
  164. 1 DOWN
  165. 1 ACCEPT  Select the CURSOR option.
  166. 0 UP    * 12
  167. 0 MESSAGE
  168. What is the Frequency Ratio of this wave...
  169. 5 RIGHT * 10  Reposition the cursor.
  170. 0 MESSAGE FREQUENCY RATIO
  171. To this other wave on the display?
  172. 9 CANCEL  Exit the CURSOR option.
  173. 0 MESSAGE   FUNDAMENTAL
  174. What is the term given to...
  175. 5 MESSAGE
  176. the lowest frequency wave?
  177. 7 MESSAGE   HARMONIC
  178. What is the term given to...
  179. 5 MESSAGE
  180. the higher frequency wave?
  181. 7 MESSAGE  {Blank out line}
  182.  
  183. 0 ACCEPT  Select the VARIABLE UPDATE Menu.
  184. 1 DOWN
  185. 1 ACCEPT  "A"
  186. 1 -8.0    Enter the final set of values.
  187. 1 DOWN
  188. 1 DOWN
  189. 1 ACCEPT  "B"
  190. 1  1.0
  191. 1 CANCEL  Replot with the new values.
  192. 1 DOWN
  193. 1 DOWN
  194. 1 ACCEPT  Select the OVERLAY option.
  195. 1 DOWN
  196. 1 ACCEPT  Restore the last time.
  197. 1 MESSAGE OUT OF PHASE
  198. Are these waves IN or OUT of phase?
  199. 7 MESSAGE  {Blank out line}
  200.  
  201. 0 CANCEL  Exit the SINE module.
  202. 1 CANCEL  Exit the TRIGONOMETRIC Menu.
  203. 1 CANCEL  To the MAIN Menu.
  204. 0 MESSAGE
  205. Unlocking the Keyboard...Click !
  206. 2 ON-KEY
  207. 0 MESSAGE
  208. It's time to check your answers.
  209. 4 MESSAGE
  210. While we're covering the answers, you may...
  211. 4 MESSAGE
  212. Press <ACCEPT> to allow time to...
  213. 4 MESSAGE
  214. correct your sheet.
  215. 2 MESSAGE
  216. Ready to start?
  217. 0 WAIT    Until ready...
  218. 0 MESSAGE
  219. The first question was an easy warmup,
  220. 4 MESSAGE
  221. It is the MINIMUM AMPLITUDE.
  222. 6 MESSAGE
  223. Another easy one, recognize the...
  224. 6 MESSAGE
  225. MAXIMUM AMPLITUDE point?
  226. 6 MESSAGE
  227. The third one was a little harder...
  228. 6 MESSAGE
  229. It's PEAK to PEAK.
  230. 6 MESSAGE
  231. I hope you remembered the...WAVE LENGTH.
  232. 6 MESSAGE
  233. Number five is the...PERIOD.
  234. 6 MESSAGE
  235. A couple of basic ones...FREQUENCY and...
  236. 6 MESSAGE
  237. It's unit of measurement...HERTZ or Hz.
  238. 6 MESSAGE
  239. Number eight was harder...PHASE SHIFT.
  240. 6 MESSAGE
  241. The variation here is in the...AMPLITUDE.
  242. 6 MESSAGE
  243. I hope you looked closely, the ratio was 1:2.
  244. 6 MESSAGE
  245. The lowest frequency is the...FUNDAMENTAL.
  246. 6 MESSAGE
  247. Multiples of the fundamental are...HARMONICS.
  248. 6 MESSAGE
  249. Another easy one, the waves are OUT of PHASE.
  250. 6 MESSAGE
  251. We've covered a lot, I hope you did well !
  252. 4 MESSAGE
  253. Please retain your answer sheet for review.
  254. 4 BEEP    Notify the Instructor.
  255. 0 BEEP    Once again for good measure.
  256. 0 STOP    Terminate this testing MACRO.
  257.